package com.xuecheng.search.service;

import com.xuecheng.commons.model.dto.CoursePubIndexDto;
import com.xuecheng.commons.model.dto.PageRequest;
import com.xuecheng.commons.model.vo.ResponseResult;

import java.io.IOException;

/**
 * @author Sober_wxy
 * @date 2022/7/25 16:07
 */
public interface SearchService {
        ResponseResult search(PageRequest pageRequest, CoursePubIndexDto dto) throws IOException;

        void createIndex(Long coursePubId) throws IOException;

        ResponseResult findById(Long id) throws IOException;

        void deleteIndex(Long coursePubId) throws IOException;
}
